<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
	</head>
	<body>
		<h3>JavaScript访问DOM树</h3>
		<h3>JavaScript访问h3标签，a标签，获取他们内容</h3>
		<h5>tag、className、name、id</h5>
		<a href="ww.taobao.coM" target="_blank">淘宝</a>
		<a class="jd" href="www.jd.com" target="_blank">京东</a>
		<a name="pdd" href="www.pinduoduo.com" target="_blank">拼多多</a>
		<a id="bd" href="www.baidu.com">百度</a>
		
	</body>
	，<script>
			console.log(document.getElementById("bd").innerText);
			console.log(document.getElementById("bd").href);
		</script>
</html>
